<?php
	
	include "../model/SimCard.php";
	include "../dao/SimCardDAO.php";
	
	$simcard = new SimCard();
	
	$simcard->setNumero($_POST['numero']);
	$simcard->setNumeroChip($_POST['numeroChip']);
	$simcard->setPlano($_POST['plano']);
	$simcard->setVencPlano($data = implode("-",array_reverse(explode("/",$_POST['vencPlano']))));
	
	$simcarddao = new SimCardDAO();
	$simcarddao->insert($simcard);
?>